<%@ page contentType="text/html; charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp version="2.0" xmlns:c="http://java.sun.com/jsp/jstl/core"
     xmlns:jsp="http://java.sun.com/JSP/Page"
     xmlns="http://www.w3.org/1999/xhtml" >
    <html>
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
        <script type="text/javascript"
                src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
        <script>
            $(document).ready(function() {
                $('#submit').click(function(event) {
                    $('#content_bottom').html("");
                    var password1=$('#password1').val();
                    var password=$('#password').val();
                    $.post('change',{password1:password1,password:password},function(responseText) {
                            $('#result_div').html(responseText);
                    });

                });
            });
        </script>
        <title></title>
    </head>
    <body>
    <p>Введите пароль
        <p><input type="password" id="password1"/>
    <p>Введите пароль снова
        <p><input type="password" id="password"/>
    <p/><input type="button" id="submit" value="Сменить пароль" />
        <%--<form action="change" method="post" name="Form1" onsubmit="return validate_form ( )" >--%>
            <%--<p/>Enter your new password <input type="password" name="password" value="" title="воу"/>--%>
            <%--<p/>Enter your new password again <input type="password" name="password1" value="" title="воу"/>--%>
            <%--<p/><input type="submit" value="change"/>--%>
        <%--</form>--%>
    </body>
    <div id="result_div"></div>
    </html>
</jsp>